#include "Enemy.h"
#include <stdlib.h>
#include <time.h>

Enemy::Enemy() :  strengthValue(0), enemyType(0), dead(false)
{
	//Intentionally left blank
}

Enemy::Enemy(int strength, EnemyType eType) : strengthValue(strength), enemyType(eType), dead(false)
{
	//Intentionally left blank
}

int Enemy::getStrength()
{
	return strengthValue;
}

int Enemy::attackRoll()
{
	srand(time(NULL));
	return (getStrength() + ((rand() % 6) + 1)); 
}

int Enemy::getType()
{
	return enemyType;
}

//Once an enemy dies it becomes a Trophy for the Character
void Enemy::die()
{
	dead = true;
	enemyType = eTrophy;
}

bool Enemy::isDead()
{
	return dead;
}

void Enemy::revive()
{
	dead = false;
}

void Enemy::announce()
{
	cout << "Calling Generic Enemy Class announce method!!" << endl;
}